package com.ews.onlineexchange.app.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.ews.onlineexchange.model.RejectRecord;
import com.ews.onlineexchange.model.User;

public class ServiceSupplierBasicInfo implements Serializable {
	/**
	 * 
	 */
	private static final long				serialVersionUID	= 1L;
	private String 							id;
	private String							email;
	private String							cnname;
	private String							companyType;							// 单位性质或组织形式
	private String							creditCode;								// 组织机构代码/统一信用代码
	private BigDecimal						registeredFund;							// 注册资金
	private String							registrationAuthority;					// 注册机关
	private String							registrationNo;							// 注册登记号
	private Date							regtime;								// 成立时间
	private List<TempImage>					businessLicenseImages = new ArrayList<>();// 营业执照
//	private List<TempImage>					taxProveImages = new ArrayList<>();		// 纳税证明
	private String							address;								// 办公地址
	private String							legalPerson;							// 法定代表人
	private String							legalPersonPhoneNumber;					// 法人电话号码
	private String							firstContactor;							// 第一联系人
	private String							firstContactorPhoneNumber;				// 第一联系人电话
	private String							secondContactor;						// 第二联写人
	private String							secondContactorPhoneNumber;				// 第二联写人电话
	private Integer							employeeCount;							// 员工数
	private Integer							highTitleEmployeeCount;					// 高级职称人数
	private Integer							mediumTitleEmployeeCount;				// 中级职称人数
	private Integer							beginnerTitleEmployeeCount;				// 初级职称人数
	private boolean							govServiceSupplier;						// 是否政府服务供应商
	private String							region;									// 中介机构所在地区
	private boolean							alwaysValid;							// 是否长期有效
	private Date							busnissAllotedTime;						// 营业期限
	private String							branchesInfo;							// 分支机构登记情况
	private String							intro;									// 机构简介
//	private List<TempBusiness>				businesses			= new ArrayList<>();// 主营业务
//	private List<TempQualificationCert>		certs				= new ArrayList<>();// 证书
	private List<TempAttachment>			attachments			= new ArrayList<>();// 相关附件
	private RejectRecord					currRejectRecord;
	private Boolean						auditted;
	private BigDecimal					creditScore;
	private String						creditLevel;
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	private BigDecimal						score = new BigDecimal(60);
	private int								orderCount;
	
	private boolean					valid;
	private User                    auditUser;								 //审核用户
	private Date                    auditDate;
	
	public BigDecimal getCreditScore() {
		return creditScore;
	}

	public void setCreditScore(BigDecimal creditScore) {
		this.creditScore = creditScore;
	}



	public String getCreditLevel() {
		return creditLevel;
	}

	public void setCreditLevel(String creditLevel) {
		this.creditLevel = creditLevel;
	}

	public String getCompanyType() {
		return companyType;
	}

	public void setCompanyType(String companyType) {
		this.companyType = companyType;
	}

	public String getCreditCode() {
		return creditCode;
	}

	public void setCreditCode(String creditCode) {
		this.creditCode = StringUtils.trim(creditCode);
	}

	public BigDecimal getRegisteredFund() {
		return registeredFund;
	}

	public void setRegisteredFund(BigDecimal registeredFund) {
		this.registeredFund = registeredFund;
	}

	public String getRegistrationAuthority() {
		return registrationAuthority;
	}

	public void setRegistrationAuthority(String registrationAuthority) {
		this.registrationAuthority = registrationAuthority;
	}

	public String getRegistrationNo() {
		return registrationNo;
	}

	public void setRegistrationNo(String registrationNo) {
		this.registrationNo = registrationNo;
	}

	public Date getRegtime() {
		return regtime;
	}

	public void setRegtime(Date regtime) {
		this.regtime = regtime;
	}

	
	public Date getAuditDate() {
		return auditDate;
	}

	public void setAuditDate(Date auditDate) {
		this.auditDate = auditDate;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLegalPerson() {
		return legalPerson;
	}

	public void setLegalPerson(String legalPerson) {
		this.legalPerson = legalPerson;
	}

	public String getLegalPersonPhoneNumber() {
		return legalPersonPhoneNumber;
	}

	public void setLegalPersonPhoneNumber(String legalPersonPhoneNumber) {
		this.legalPersonPhoneNumber = legalPersonPhoneNumber;
	}

	public String getFirstContactor() {
		return firstContactor;
	}

	public void setFirstContactor(String firstContactor) {
		this.firstContactor = firstContactor;
	}

	public String getFirstContactorPhoneNumber() {
		return firstContactorPhoneNumber;
	}

	public void setFirstContactorPhoneNumber(String firstContactorPhoneNumber) {
		this.firstContactorPhoneNumber = firstContactorPhoneNumber;
	}

	public String getSecondContactor() {
		return secondContactor;
	}

	public void setSecondContactor(String secondContactor) {
		this.secondContactor = secondContactor;
	}

	public String getSecondContactorPhoneNumber() {
		return secondContactorPhoneNumber;
	}

	public void setSecondContactorPhoneNumber(String secondContactorPhoneNumber) {
		this.secondContactorPhoneNumber = secondContactorPhoneNumber;
	}

	public Integer getEmployeeCount() {
		return employeeCount;
	}

	public void setEmployeeCount(Integer employeeCount) {
		this.employeeCount = employeeCount;
	}

	public Integer getHighTitleEmployeeCount() {
		return highTitleEmployeeCount;
	}

	public void setHighTitleEmployeeCount(Integer highTitleEmployeeCount) {
		this.highTitleEmployeeCount = highTitleEmployeeCount;
	}

	public Integer getMediumTitleEmployeeCount() {
		return mediumTitleEmployeeCount;
	}

	public void setMediumTitleEmployeeCount(Integer mediumTitleEmployeeCount) {
		this.mediumTitleEmployeeCount = mediumTitleEmployeeCount;
	}

	public Integer getBeginnerTitleEmployeeCount() {
		return beginnerTitleEmployeeCount;
	}

	public void setBeginnerTitleEmployeeCount(Integer beginnerTitleEmployeeCount) {
		this.beginnerTitleEmployeeCount = beginnerTitleEmployeeCount;
	}

	public boolean isGovServiceSupplier() {
		return govServiceSupplier;
	}

	public void setGovServiceSupplier(boolean govServiceSupplier) {
		this.govServiceSupplier = govServiceSupplier;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	
	public boolean isAlwaysValid() {
		return alwaysValid;
	}

	public void setAlwaysValid(boolean alwaysValid) {
		this.alwaysValid = alwaysValid;
	}
		
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCnname() {
		return cnname;
	}

	public void setCnname(String cnname) {
		this.cnname = cnname;
	}

	public List<TempImage> getBusinessLicenseImages() {
		return businessLicenseImages;
	}

	public void setBusinessLicenseImages(List<TempImage> businessLicenseImages) {
		this.businessLicenseImages = businessLicenseImages;
	}

//	public List<TempImage> getTaxProveImages() {
//		return taxProveImages;
//	}
//
//	public void setTaxProveImages(List<TempImage> taxProveImages) {
//		this.taxProveImages = taxProveImages;
//	}

	public List<TempAttachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<TempAttachment> attachments) {
		this.attachments = attachments;
	}

	public Date getBusnissAllotedTime() {
		return busnissAllotedTime;
	}

	public void setBusnissAllotedTime(Date busnissAllotedTime) {
		this.busnissAllotedTime = busnissAllotedTime;
	}

	public String getBranchesInfo() {
		return branchesInfo;
	}

	public void setBranchesInfo(String branchesInfo) {
		this.branchesInfo = branchesInfo;
	}

	public User getAuditUser() {
		return auditUser;
	}

	public void setAuditUser(User auditUser) {
		this.auditUser = auditUser;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}
	
//
//	public List<TempBusiness> getBusinesses() {
//		return businesses;
//	}
//	
//
//	public void setBusinesses(List<TempBusiness> businesses) {
//		this.businesses = businesses;
//	}
//
//	public List<TempQualificationCert> getCerts() {
//		return certs;
//	}
//
//	public void setCerts(List<TempQualificationCert> certs) {
//		this.certs = certs;
//	}		

	public RejectRecord getCurrRejectRecord() {
		return currRejectRecord;
	}

	public void setCurrRejectRecord(RejectRecord currRejectRecord) {
		this.currRejectRecord = currRejectRecord;
	}

	public Boolean getAuditted() {
		return auditted;
	}

	public void setAuditted(Boolean auditted) {
		this.auditted = auditted;
	}

	public BigDecimal getScore() {
		return score;
	}
	
	public void setScore(BigDecimal score) {
		this.score = score;
	}

	public int getOrderCount() {
		return orderCount;
	}

	public void setOrderCount(int orderCount) {
		this.orderCount = orderCount;
	}

	public boolean isValid() {
		return valid;
	}

	public void setValid(boolean valid) {
		this.valid = valid;
	}

}
